From: Daniel van Vugt Date: Wed, 8 Jul 2020 10:06:39 +0000 (+0800) Subject: workspaceSwitcherPopup: Set offscreen redirect always X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~145 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9363fd35243ee2fe502725951389d2bbc18483a9;p=gnome-shell.git workspaceSwitcherPopup: Set offscreen redirect always Because for most frames during a workspace switch it's not changing and we can repaint it faster if it's cached on the GPU as a single texture. This seems to reduce the render time for workspace switching by more than 20%. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1356 --- diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js index eebf9db3b..4613e96ec 100644 --- a/js/ui/workspaceSwitcherPopup.js +++ b/js/ui/workspaceSwitcherPopup.js @@ -11,7 +11,10 @@ var DISPLAY_TIMEOUT = 600; var WorkspaceSwitcherPopupList = GObject.registerClass( class WorkspaceSwitcherPopupList extends St.Widget { _init() { - super._init({ style_class: 'workspace-switcher' }); + super._init({ + style_class: 'workspace-switcher', + offscreen_redirect: Clutter.OffscreenRedirect.ALWAYS, + }); this._itemSpacing = 0; this._childHeight = 0;